package com.atguigu.gmall.weball;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;


import javax.sql.DataSource;

//@RefreshScope //开启配置自动刷新。 生产环境一般都会禁用自动刷新
//@EnableFeignClients()
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@EnableCircuitBreaker
//@EnableDiscoveryClient
//@FeignClient
//@SpringCloudApplication

@RefreshScope //开启配置自动刷新。 生产环境一般都会禁用自动刷新
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign")
@SpringCloudApplication
public class WebAllMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebAllMainApplication.class,args);
    }
}
